<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/sks/cms/page/share/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="districtJavaScript.jsp" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String menuName = request.getParameter("menuName") == null ? ""
			: (String) request.getParameter("menuName");
	boolean isCollected = (Boolean) request.getAttribute("isCollected") != null ? (Boolean) request.getAttribute("isCollected") : false;
%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="租房,买房,三棵松,地产,中介" />
<meta name="description" content="三棵松地产" />
<title>三棵松地产</title>
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/css/frontpages/houseList.css" />
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/css/frontpages/common.css" />
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/css/frontpages/BrightSide.css" />
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/css/frontpages/mytestcss.css" />
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/frontpages/district/district.css" />
<script type="text/javascript" src="/js/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="<%=basePath%>sks/js/frontpages/jquery.cookie.js"></script>
<script language="javascript">
//创建一个showhidediv的方法，直接跟ID属性
function showhidediv(id){
var sbtitle=document.getElementById(id);
if(sbtitle){
   if(sbtitle.style.display=='block'){
   sbtitle.style.display='none';
   }else{
   sbtitle.style.display='block';
   }
}
}
</script>
</head>
<body onload="javascript:changeMenu('<%=menuName%>');">
	<div class="wrap">
		<jsp:include page="../header.jsp"></jsp:include>
		<!-- 		<div id="small-district-content"> -->

		<div class="nav-line">
			<a href="<%=basePath%>">SKS房地产</a> &gt; <a
				href="<%=basePath%>sks/district.do?method=list&menuName=village">
				小区</a> &gt; ${building.name }
		</div>
		<div id="clear"></div>
		<!-- header -->
		<div class="bc standw">
			<!--切换标签 star-->
			<div class="sxq_xqheadtab clearfix">
				<div class="tab_menu">
					<div class="menu">
						<a
							href="<%=basePath%>sks/districtInfo.do?method=base&menuName=village&buildingId=${building.buildingId }"
							class="on">小区概况<span></span> </a> <a
							href="<%=basePath%>sks/districtInfo.do?method=photo&menuName=village&buildingId=${building.buildingId }">小区照片<span></span>
						</a> <a
							href="<%=basePath%>sks/districtInfo.do?method=map&menuName=village&buildingId=${building.buildingId }">小区地图<span></span>
						</a> <a
							href="<%=basePath%>sks/districtInfo.do?method=houseSaleList&menuName=village&buildingId=${building.buildingId }&isRent=Buy">出售房源<span></span>
						</a> <a
							href="<%=basePath%>sks/districtInfo.do?method=houseRentList&menuName=village&buildingId=${building.buildingId }">出租房源<span></span>
						</a> <a
							href="<%=basePath%>sks/districtInfo.do?method=detail&menuName=village&buildingId=${building.buildingId }">周边配套<span></span>
						</a>

					</div>
					<div style="clear: both;" ></div>
					<a href="javascript:void(0);" id="collectDistrict"
						onclick="<%= isCollected ? "del_attentioncommunity()" : "add_attentioncommunity()"%>"
						class="sc_link""><%= isCollected ? "取消收藏" : "收藏小区"%></a>
				</div>
			</div>
			<input id="buildingId" type="hidden" value=${building.buildingId }>
			
			<div class="waijing_wrap mb10 clearfix">
				<div class="fl sort_pic_l">
					<a href=""><img
						src="<%=basePath%>${building.pictures['0'].fullPathName}"
						width="288" height="213" alt="${building.name } "> </a>
				</div>
				<div class="fl infos_table">
					<table>
						<tr>
							<td class="first_td"><span>物业类型：</span>${building.propertyType.name
								}</td>
							<td><span>建筑结构：</span>${building.buildStructure }</td>
						</tr>
						<tr>
							<td><span>所在区域：</span> <c:forEach var="ta"
									items="${areaPageView}">
									<c:if test="${ta.areaId == building.area.areaId}">
				${ta.parentArea.name}
		</c:if>
								</c:forEach>&nbsp;${building.area.name }</td>
							<td><span>楼盘地址：</span>${building.address }</td>
						</tr>
						<tr>
							<td><span>容 积 率：</span> <c:if
									test="${building.cubage == null }">--</c:if> <c:if
									test="${building.cubage != null }">${building.cubage }%</c:if>
							</td>
							<td><span>绿 化 率：</span> <c:if
									test="${building.afforest == null }">--</c:if> <c:if
									test="${building.afforest != null }">${building.afforest }%</c:if>
							</td>
						</tr>
						<tr>
							<td><span>开工时间：</span> <fmt:formatDate
									value='${building.beginDate}' pattern='yyyy-MM-dd' /></td>
							<td><span>完工时间：</span> <fmt:formatDate
									value='${building.finishDate}' pattern='yyyy-MM-dd' /></td>
						</tr>
						<tr>
							<td><span>物 业 费：</span>${building.propertyPrice}元/平米.月</td>
							<td><span> 车位数量：</span>总数：<c:if
									test="${building.carNumber == null }">--个</c:if> <c:if
									test="${building.carNumber != null }">${building.carNumber }个</c:if>
							</td>
						</tr>
						<tr>
							<td
								style='height: 25px; width: 235px; overflow: hidden; display: block;'><span>物业公司：</span>${building.propertyCompany
								}</td>
							<td><span>开 发 商：</span>${building.developer }</td>
						</tr>
						<tr>
							<td><span>占地面积：</span> <c:if
									test="${building.space == null }">--平方米</c:if> <c:if
									test="${building.space != null }">${building.space }平方米</c:if>
							</td>
							<td><span>建筑面积：</span> <c:if
									test="${building.planSpace == null }">--平方米</c:if> <c:if
									test="${building.planSpace != null }">${building.planSpace }平方米</c:if>
							</td>
						</tr>
					</table>
				</div>
			</div>
		</div>
		<div class="list_contain">
			<div class="listing">
				<div class="search-result2 box">
					<div class="search_bottom">
						<div class="totalnum">
							<p>推荐房源</p>
						</div>
					</div>
				</div>
				<div style="clear: both;"></div>
				<ol id="list_body">
					<c:forEach var="h" items="${pageView.records}">
						<li id="li_apf_id_12">
							<div class="property2" id="apf_id_12">
								<div class="photo">
									<a
										href="<%=basePath%>sks/house.do?method=info&houseId=${h.houseId}&menuName=houseListRent"
										class="photo" title="${h.title}" target="_blank"><img
										class="thumbnail" id="apf_id_13_a" alt="${h.title}"
										onerror="this.src='<%=basePath%>sks/img/frontpages/nohouse.jpg'"
										src="<%=basePath%>${h.pictures['0'].fullPathName}"
										alt="${h.title}" width="150" height="108" /> </a>
								</div>
								<div class="details">
									<h4>
										<a id="comm_name_qt_apf_id_12"
											href="<%=basePath%>sks/house.do?method=info&houseId=${h.houseId}&menuName=houseListRent"
											target="_blank">${h.title}</a>&nbsp;
									</h4>
									<address id="comm_addr_qt_apf_id_12">
										<span
											style="overflow: hidden; float: left; font-family: Simsun">[<a
											href="#" target="_blank">${building.name }</a>]&nbsp;${h.address
											}</span>
									</address>
									<p class="date">
										<span> 房型：${h.houseType.name } </span>
									</p>
									<p class="house">
										<span id="comm_sale_qt_apf_id_12">楼层： ${h.floorAt
											}/${h.floorAll } </span> <span id="comm_rent_qt_apf_id_12">面积：
											${h.space }平方米 </span>
									</p>
								</div>
								<div class="price" style="line-height: 22px;">
									<span id="comm_price_qt_apf_id_12"><strong>${h.rentPrice
											}</strong> </span>&nbsp;元/平米
								</div>
							</div>
						</li>
					</c:forEach>
				</ol>
				<fy:page method="post"
					actionPath="districtInfo.do?method=base&menuName=village&buildingId=${building.buildingId}"
					curPageNo="${pageView.currentpage}"
					pageSize="${pageView.maxresult}"
					totalRows="${pageView.totalrecord}" />
				<div class="multi_page_div"></div>
				<div style="clear: both;"></div>
			</div>
			<div class="side_content">
			<div class="historybox nolist">
				<h4 style="margin-bottom: 5px;">你最近浏览过的房源</h4>
				<table id="historyhouse"></table>
			</div>
			<div id="IFX_p13" style="clear: both; margin: 15px 0 15px 0px;"></div>
			<div
				style="width: 210px; height: 220px; margin: 0 auto; padding: 9px 0 9px 9px; margin-top: 5px;"
				id="adanjuke_zoneid_comm_001"></div>
			</div>	
		</div>
		<div id="clear"></div>
		<div class="blank10"></div>
		<!-- footer starts here -->
		<jsp:include page="../rooster.jsp"></jsp:include>
	</div>
</body>
<script type="text/javascript">
changeMenu('<%=menuName%>');
function getHistoryHouse() {
	$.ajax({
        type : "POST",
        url : "/sks/house.do",
        data : "method=history",
        dataType : "text",
        success : callback
    });
}
function callback(data) {
	var obj = $('#historyhouse');
	obj.html(data);
}
getHistoryHouse();
</script>
<script type="text/javascript">
$(document).ready(function(){
	toLoginstatus();
});

function toLoginstatus(){
	var user =  '${user}';
	if(user!="nobody"){
		$.cookie("individual",user,{expires:1});
	}
}
</script>
</html>